<!DOCTYPE html>
<%@ page import="domain.result.Result, svc.ResultSvc, utils.Utility" %>
<%
String userName="";
if(request.getSession().getAttribute("name")!=null){
	userName=request.getSession().getAttribute("name").toString();
}
if(userName.equals("")) {
	out.print("Please <a href='../jsp/login.jsp'>log in</a> first!");
}

Result resA = (Result) request.getAttribute("resultA");	
Result resB = (Result) request.getAttribute("resultB");

double cwtA = resA.getCwt();
double cwtB = resB.getCwt();

ResultSvc svc = new ResultSvc();
		
%>

<html lang="en">
  <head>
    <title>Results and Analysis</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
  <link href="../css/bootstrap.css" rel="stylesheet">
 <!--  <link href="../css/bootstrap-responsive.css" rel="stylesheet">-->
     <link href="../css/docs.css" rel="stylesheet">
<link href="../css/google-code-prettify/prettify.css" rel="stylesheet">
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
	
	
	 
    
    <style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
	
    </style>
  
  </head>

  <body>

    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
        <a class="brand" href="#">DairyVIP Project</a>
          <div class="nav-collapse collapse">
            <p class='navbar-text pull-right'>Logged in as <%=userName%></p>
            <ul class="nav">
          <li ><a href="../jsp/index.jsp">Home</a></li>
              <li><a href="../jsp/acknowledgements_contro.jsp">Acknowledgements/Contributors</a></li>
            <li><a href='../jsp/dataset.jsp'>My DairyVIP</a></li>
					 
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>

           
           <div class="container">
         <div class="tabbable"> <!-- Only required for left/right tabs -->
        
    <ul class="nav nav-tabs">
    <li class="active"><a href="#tab1" data-toggle="tab">per slot per year</a></li>
    <li><a href="#tab2" data-toggle="tab">per 100 pounds/milk</a></li>
    <li><a href="#tab3" data-toggle="tab">per cow/year</a></li>
    <li><a href="#tab4" data-toggle="tab">Constant Result Data</a></li>
    </ul>
    
    <div class="tab-content">
    <div class="tab-pane active" id="tab1">
   <div class="span7">
   <table class="table table-bordered">
							<tr>
							<th>Description</th>
							<th>Plan A</th>
							<th>Plan B</th>
							<th>Plan B - A</th>
							</tr>
							
							<tr>
							<td>Milk Sales </td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getMilkSales()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getMilkSales()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getMilkSales() - resA.getMilkSales()) %></td>
							</tr>
														
							<tr>
							<td>Cow Sales </td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getCowSales()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getCowSales()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getCowSales() - resA.getCowSales()) %></td>
							</tr>
							
							<tr>
							<td>Calf Sales </td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getCalfSales()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getCalfSales()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getCalfSales() - resA.getCalfSales()) %></td>
							</tr>
							
							<tr>
							<td>Total Revenue</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getTotalRevenue()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getTotalRevenue()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getTotalRevenue() - resA.getTotalRevenue()) %></td>
							</tr>
							
							<tr>
							<td>Feed cost</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getFeedCost()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getFeedCost()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getFeedCost() - resA.getFeedCost()) %></td>
							</tr>
							
							<tr>
							<td>Breeding Supply cost</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getBreedingSupplyCost()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getBreedingSupplyCost()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getBreedingSupplyCost() - resA.getBreedingSupplyCost()) %></td>
							</tr>
							
							<tr>
							<td>heifer purchase cost</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getHeiferCost()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getHeiferCost()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getHeiferCost() - resA.getHeiferCost()) %></td>
							</tr>
							
							<tr>
							<td>Veterinary cost</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getVetCost()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getVetCost()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getVetCost() - resA.getVetCost()) %></td>
							</tr>
							
							<tr>
							<td>Involuntary culling loss</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getLoss()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getLoss()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getLoss() - resA.getLoss()) %></td>
							</tr>
							
							<tr>
							<td>Variable Labor cost</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getLaborCost()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getLaborCost()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getLaborCost() - resA.getLaborCost()) %></td>
							</tr>
							
							<tr>
							<td>Fixed labor cost</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getFixedCost_Labor()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getFixedCost_Labor()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getFixedCost_Labor() - resA.getFixedCost_Labor()) %></td>
							</tr>
							
							<tr>
							<td>Fixed other cost</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getFixedCost_Other()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getFixedCost_Other()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getFixedCost_Other() - resA.getFixedCost_Other()) %></td>
							</tr>
							
							<tr>
							<td>Total cost</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getTotalCosts()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getTotalCosts()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getTotalCosts() - resA.getTotalCosts()) %></td>
							</tr>
							
							<tr>
							<td>Total Profit</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getEaa()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getEaa()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getEaa() - resA.getEaa()) %></td>
							</tr>
	
							</table></div>
    </div>
    
    <div class="tab-pane" id="tab2">
     <div class="span7">
   <table class="table table-bordered">
							<tr>
							<th>Description</th>
							<th>Plan A</th>
							<th>Plan B</th>
							<th>Plan B - A</th>
							</tr>
							
							<tr>
							<td>Milk Sales </td>
							<td align="right"><%=(String) svc.convertToPSPD(resA.getMilkSales()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getMilkSales()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getMilkSales() - resA.getMilkSales()) %></td>
							</tr>
														
							<tr>
							<td>Cow Sales </td>
							<td align="right"><%=(String) svc.convertToPSPD(resA.getCowSales()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getCowSales()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getCowSales() - resA.getCowSales()) %></td>
							</tr>
							
							<tr>
							<td>Calf Sales </td>
							<td align="right"><%=(String) svc.convertToPSPD(resA.getCalfSales()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getCalfSales()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getCalfSales() - resA.getCalfSales()) %></td>
							</tr>
							
							<tr>
							<td>Total Revenue</td>
							<td align="right"><%=(String) svc.convertToPSPD(resA.getTotalRevenue()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getTotalRevenue()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getTotalRevenue() - resA.getTotalRevenue()) %></td>
							</tr>
							
							<tr>
							<td>Feed cost</td>
							<td align="right"><%=(String) svc.convertToPSPD(resA.getFeedCost()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getFeedCost()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getFeedCost() - resA.getFeedCost()) %></td>
							</tr>
							
							<tr>
							<td>Breeding Supply cost</td>
							<td align="right"><%=(String) svc.convertToPSPD(resA.getBreedingSupplyCost()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getBreedingSupplyCost()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getBreedingSupplyCost() - resA.getBreedingSupplyCost()) %></td>
							</tr>
							
							<tr>
							<td>heifer purchase cost</td>
							<td align="right"><%=(String) svc.convertToPSPD(resA.getHeiferCost()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getHeiferCost()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getHeiferCost() - resA.getHeiferCost()) %></td>
							</tr>
							
							<tr>
							<td>Veterinary cost</td>
							<td align="right"><%=(String) svc.convertToPSPD(resA.getVetCost()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getVetCost()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getVetCost() - resA.getVetCost()) %></td>
							</tr>
							
							<tr>
							<td>Involuntary culling loss</td>
							<td align="right"><%=(String) svc.convertToPSPD(resA.getLoss()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getLoss()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getLoss() - resA.getLoss()) %></td>
							</tr>
							
							<tr>
							<td>Variable Labor cost</td>
							<td align="right"><%=(String) svc.convertToPSPD(resA.getLaborCost()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getLaborCost()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getLaborCost() - resA.getLaborCost()) %></td>
							</tr>
							
							<tr>
							<td>Fixed labor cost</td>
							<td align="right"><%=(String) svc.convertToPSPD(resA.getFixedCost_Labor()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getFixedCost_Labor()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getFixedCost_Labor() - resA.getFixedCost_Labor()) %></td>
							</tr>
							
							<tr>
							<td>Fixed other cost</td>
							<td align="right"><%=(String) svc.convertToPSPD(resA.getFixedCost_Other()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getFixedCost_Other()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getFixedCost_Other() - resA.getFixedCost_Other()) %></td>
							</tr>
							
							<tr>
							<td>Total cost</td>
							<td align="right"><%=(String) svc.convertToPSPD(resA.getTotalCosts()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getTotalCosts()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getTotalCosts() - resA.getTotalCosts()) %></td>
							</tr>
							
							<tr>
							<td>Total Profit</td>
							<td align="right"><%=(String) svc.convertToPSPD(resA.getEaa()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getEaa()) %></td>
							<td align="right"><%=(String) svc.convertToPSPD(resB.getEaa() - resA.getEaa()) %></td>
							</tr>
	
							</table></div>
    </div>
    
    
 <div class="tab-pane" id="tab3">
     <div class="span7">
   <table class="table table-bordered">
							<tr>
							<th>Description</th>
							<th>Plan A</th>
							<th>Plan B</th>
							<th>Plan B - A</th>
							</tr>
							
							<tr>
							<td>Milk Sales </td>
							<td align="right"><%=(String) svc.convertToPCWT(resA.getMilkSales(), resA.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getMilkSales(), resB.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getMilkSales() - resA.getMilkSales(), 1) %></td>
							</tr>
														
							<tr>
							<td>Cow Sales </td>
							<td align="right"><%=(String) svc.convertToPCWT(resA.getCowSales(), resA.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getCowSales(), resB.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getCowSales() - resA.getCowSales(), 1) %></td>
							</tr>
							
							<tr>
							<td>Calf Sales </td>
							<td align="right"><%=(String) svc.convertToPCWT(resA.getCalfSales(), resA.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getCalfSales(), resB.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getCalfSales() - resA.getCalfSales(), 1) %></td>
							</tr>
							
							<tr>
							<td>Total Revenue</td>
							<td align="right"><%=(String) svc.convertToPCWT(resA.getTotalRevenue(), resA.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getTotalRevenue(), resB.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getTotalRevenue() - resA.getTotalRevenue(), 1) %></td>
							</tr>
							
							<tr>
							<td>Feed cost</td>
							<td align="right"><%=(String) svc.convertToPCWT(resA.getFeedCost(), resA.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getFeedCost(), resB.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getFeedCost() - resA.getFeedCost(), 1) %></td>
							</tr>
							
							<tr>
							<td>Breeding Supply cost</td>
							<td align="right"><%=(String) svc.convertToPCWT(resA.getBreedingSupplyCost(), resA.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getBreedingSupplyCost(), resB.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getBreedingSupplyCost() - resA.getBreedingSupplyCost(), 1) %></td>
							</tr>
							
							<tr>
							<td>heifer purchase cost</td>
							<td align="right"><%=(String) svc.convertToPCWT(resA.getHeiferCost(), resA.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getHeiferCost(), resB.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getHeiferCost() - resA.getHeiferCost(), 1) %></td>
							</tr>
							
							<tr>
							<td>Veterinary cost</td>
							<td align="right"><%=(String) svc.convertToPCWT(resA.getVetCost(), resA.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getVetCost(), resB.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getVetCost() - resA.getVetCost(), 1) %></td>
							</tr>
							
							<tr>
							<td>Involuntary culling loss</td>
							<td align="right"><%=(String) svc.convertToPCWT(resA.getLoss(), resA.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getLoss(), resB.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getLoss() - resA.getLoss(), 1) %></td>
							</tr>
							
							<tr>
							<td>Variable Labor cost</td>
							<td align="right"><%=(String) svc.convertToPCWT(resA.getLaborCost(), resA.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getLaborCost(), resB.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getLaborCost() - resA.getLaborCost(), 1) %></td>
							</tr>
							
							<tr>
							<td>Fixed labor cost</td>
							<td align="right"><%=(String) svc.convertToPCWT(resA.getFixedCost_Labor(), resA.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getFixedCost_Labor(), resB.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getFixedCost_Labor() - resA.getFixedCost_Labor(), 1) %></td>
							</tr>
							
							<tr>
							<td>Fixed other cost</td>
							<td align="right"><%=(String) svc.convertToPCWT(resA.getFixedCost_Other(), resA.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getFixedCost_Other(), resB.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getFixedCost_Other() - resA.getFixedCost_Other(), 1) %></td>
							</tr>
							
							<tr>
							<td>Total cost</td>
							<td align="right"><%=(String) svc.convertToPCWT(resA.getTotalCosts(), resA.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getTotalCosts(), resB.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getTotalCosts() - resA.getTotalCosts(), 1) %></td>
							</tr>
							
							<tr>
							<td>Total Profit</td>
							<td align="right"><%=(String) svc.convertToPCWT(resA.getEaa(), resA.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getEaa(), resB.getCwt()) %></td>
							<td align="right"><%=(String) svc.convertToPCWT(resB.getEaa() - resA.getEaa(), 1) %></td>
							</tr>
	
							</table></div>
    </div>
    
  <div class="tab-pane" id="tab4">
     <div class="span7">
  	<table class="table table-bordered">
							<tr>
							<th>Description</th>
							<th>Plan A</th>
							<th>Plan B</th>
							<th>Plan B - A</th>
							</tr>
							
							<tr>
							<td>Days to end VWP </td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getDvwp()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getDvwp()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getDvwp() - resA.getDvwp()) %></td>
							</tr>
														
							<tr>
							<td>Days to first service </td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getDfs()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getDfs()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getDfs() - resA.getDfs()) %></td>
							</tr>
							
							<tr>
							<td>days to conception </td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getDaysToConc()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getDaysToConc()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getDaysToConc() - resA.getDaysToConc()) %></td>
							</tr>
							
							<tr>
							<td>days to last service</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getDlbm()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getDlbm()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getDlbm() - resA.getDlbm()) %></td>
							</tr>
							
							<tr>
							<td>calving interval(mo)</td>
							<td align="right"><%=(String) Utility.roundUptoTwo(resA.getClvInterval()) %></td>
							<td align="right"><%=(String) Utility.roundUptoTwo(resB.getClvInterval()) %></td>
							<td align="right"><%=(String) Utility.roundUptoTwo(resB.getClvInterval() - resA.getClvInterval()) %></td>
							</tr>
							
							<tr>
							<td>Open days</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getOpenDays()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getOpenDays()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getOpenDays() - resA.getOpenDays()) %></td>
							</tr>
							
							<tr>
							<td>Pregnancy rate</td>
							<td align="right"><%=(String) Utility.roundToZeroPCT(resA.getPregnancyRate0()) %></td>
							<td align="right"><%=(String) Utility.roundToZeroPCT(resB.getPregnancyRate0()) %></td>
							<td align="right"><%=(String) Utility.roundToZeroPCT(resB.getPregnancyRate0() - resA.getPregnancyRate0()) %></td>
							</tr>
							
							<tr>
							<td>value of new pregnancy</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getPv_Open()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getPv_Open()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getPv_Open() - resA.getPv_Open()) %></td>
							</tr>
							
							<tr>
							<td>cost of pregnancy loss</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getPv_Preg()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getPv_Preg()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getPv_Preg() - resA.getPv_Preg()) %></td>
							</tr>
							
							<tr>
							<td>breeding cost/preg</td>
							<td align="right"><%=(String) Utility.roundToZero(resA.getPregLaborCost() + resA.getPregSupplyCost()) %></td>
							<td align="right"><%=(String) Utility.roundToZero(resB.getPregLaborCost() + resB.getPregSupplyCost()) %></td>
							<td align="right"><%=(String) Utility.roundToZero((resB.getPregLaborCost() + resB.getPregSupplyCost()) - (resA.getPregLaborCost() + resA.getPregSupplyCost())) %></td>
							</tr>
							
							<tr>
							<td>cost of extra days open</td>
							<td align="right"><%=(String) Utility.roundUptoTwo(resA.getDaysOpen_Cost()) %></td>
							<td align="right"><%=(String) Utility.roundUptoTwo(resB.getDaysOpen_Cost()) %></td>
							<td align="right"><%=(String) Utility.roundUptoTwo(resB.getDaysOpen_Cost() - resA.getDaysOpen_Cost()) %></td>
							</tr>
							
							<tr>
							<td>Overall cull rate</td>
							<td align="right"><%=(String) Utility.roundToZeroPCT(resA.getCullRateAll()) %></td>
							<td align="right"><%=(String) Utility.roundToZeroPCT(resB.getCullRateAll()) %></td>
							<td align="right"><%=(String) Utility.roundToZeroPCT(resB.getCullRateAll() - resA.getCullRateAll()) %></td>
							</tr>
							
							<tr>
							<td>Involuntary cull rate</td>
							<td align="right"><%=(String) Utility.roundToZeroPCT(resA.getCullRateInv()) %></td>
							<td align="right"><%=(String) Utility.roundToZeroPCT(resB.getCullRateInv()) %></td>
							<td align="right"><%=(String) Utility.roundToZeroPCT(resB.getCullRateInv() - resA.getCullRateInv()) %></td>
							</tr>
							
							<tr>
							<td>voluntary cull rate</td>
							<td align="right"><%=(String) Utility.roundToZeroPCT(resA.getCullRateVol()) %></td>
							<td align="right"><%=(String) Utility.roundToZeroPCT(resB.getCullRateVol()) %></td>
							<td align="right"><%=(String) Utility.roundToZeroPCT(resB.getCullRateVol() - resA.getCullRateVol()) %></td>
							</tr>
							
							
		
							</table></div>
    </div>   
    
    </div><!-- tabcontent-->
    
    
    </div><!-- tabbable-->
    
    

<p>&nbsp;</p>
      <footer class="footer">
       <%@ include file="../inc/footer.html" %>
      </footer>

</div>
    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    
 
 <script type="text/javascript" src="../js/jquery.js"></script>
  <script src="../js/bootstrap.js"></script>
<script type="text/javascript" src="../js/jquery.cycle.all.min.js"></script>
<script type="text/javascript" src="../js/jquery.color.js"></script>
 
  </body>
</html>
